package com.iccct.feign.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalTime;

/**
 * comment
 *
 * @author iccct (taowutt1@gmail.com)
 * @since 2021-07-29  09:29
 */
//@Component
public class ScheduleTask {


    @Scheduled(fixedRate = 3000)
    public void scheduleTask(){
        System.out.println("定时任务执行: " + LocalTime.now() + " , " + Thread.currentThread().getName());
    }
}
